import type { SettingType } from '@/components'

export const baseSetting: SettingType[] = [
  {
    name: '_base',
    title: '基础配置',
    items: [
      {
        name: 'id',
        title: '组件ID',
        control: 'Input',
        props: { disabled: true },
      },
      { name: 'title', title: '组件名称', control: 'Input' },
      { name: 'style.left', title: '横向距离', control: 'InputNumber' },
      { name: 'style.top', title: '纵向距离', control: 'InputNumber' },
      { name: 'style.width', title: '组件宽度', control: 'InputNumber' },
      { name: 'style.height', title: '组件长度', control: 'InputNumber' },
    ],
  },
  {
    name: '_style',
    title: '样式配置',
    items: [
      { name: 'style.color', title: '文本颜色', control: 'ColorPicker' },
      { name: 'style.background', title: '组件背景', control: 'UploadImage' },
      { name: 'themeColor', title: '主题色', control: 'ThemeSelect' },
    ],
  },
  // { name: '_base', title: '基础配置', items: [] },
]
